package com.zheng.client.controller;


import com.zheng.api.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HttpRequestController {
    @Reference(loadbalance = "random")
    private HelloService helloService;

    @RequestMapping("hello")
    public String sayHello() {
        String result= helloService.sayHello("name");
        return result;
    }
}
